home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000285_amos-request@svcs1.digex.net_Wed Sep 20 10:23:14 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id KAA18812;  for <mcox@access.digex.net> ; Wed, 20 Sep 1995 10:23:13 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id JAA09058 for amos-out; Wed, 20 Sep 1995 09:07:29 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id JAA09055 for <amos-list@svcs1.digex.net>; Wed, 20 Sep 1995 09:07:28 -0400
  4. Received: from red.paston.co.uk (red.paston.co.uk [194.129.188.3]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id JAA10131;  for <amos-list@access.digex.net> ; Wed, 20 Sep 1995 09:07:25 -0400
  5. Received: from localhost (bwyatt.paston.co.uk) by red.paston.co.uk (5.x/SMI-SVR4)
  6.     id AA09167; Wed, 20 Sep 1995 13:59:57 +0100
  7. Received: by paston.co.uk.uucp (V1.16/Amiga)
  8.     id AA001mb; Wed, 20 Sep 95 17:54:55 GMT
  9. Date: Wed, 20 Sep 95 17:54:55 GMT
  10. Message-Id: <9509201754.AA001ma@paston.co.uk.uucp>
  11. In-Reply-To:  <9509201209.aa07464@post.demon.co.uk>
  12.              (from Mark Carter <Mark@westmead.demon.co.uk>)
  13.              (on Wed, 20 Sep 95 11:28:25)
  14. Lines: 36
  15. X-Mailer: ADMail 1.5 Copyright 1995 S.T.Brown
  16. From: bwyatt@paston.co.uk (Ben Wyatt)
  17. To: amos-list@access.digex.net
  18. Subject: Re: Bits and Pieces
  19. Status: RO
  20. X-Status: 
  21.  
  22. Greetings Mark, you wrote some text on the subject Re: Bits and Pieces, and
  23. now I'm going to answer it.
  24.  
  25. MC> > MC> Compare this to loading all data from the bank into arrays. Then all 
  26. MC> > MC> I would have to do to access a stat is
  27. MC> > MC> 
  28. MC> > MC>      Result=Statistic(Player,Team,Statnum)
  29. MC> > MC> 
  30. MC> > MC> Much nicer, dont you agree.....?
  31. MC> > 
  32. MC> > I guess so... but how about this:
  33. MC> > 
  34. MC> > Def fn _RESULT(Player,Team,Statnum)=Deek(Start(Bank)+400*Team+20*Player+2*Statnum)
  35. MC> > Result=Fn_RESULT(Player,Team,Statnum)
  36. MC> > 
  37. MC> > Which would be neat-ish...
  38. MC> 
  39. MC> Nice idea - I like it!..... although I hate using Def fn - you cant 
  40. MC> hide them away like normal procedures.
  41.  
  42. Don't forget you have to include them in every procedure it is used in -
  43. something which I didn't realise for ages... yet another flaw in amos
  44. functions... ;-)
  45.  
  46. MC> But (and theres always a but), as I said earlier I have lots of different 
  47. MC> types of stats ans skills - it would be too awkward to lump all the 
  48. MC> strings in one array and all the integers in another.  Therefore, I 
  49. MC> need to stick with using the 30 arrays - which translates to 30 Def 
  50. MC> fns - yuk :-(
  51.  
  52. Ouch! ;-)
  53.  
  54. Bye  _________________________________
  55.     /                                 \
  56.     > Ben Wyatt - bwyatt@paston.co.uk <
  57.     \_________________________________/ ï¿½1995 Very Interesting Signatures